package com.zhuss.team.db.dao.ext;

import com.zhuss.bean.bo.team.invest.SearchInvestBo;
import com.zhuss.bean.vo.team.invest.DetailInvestVo;
import com.zhuss.bean.vo.team.invest.GetInvestListVo;
import com.zhuss.bean.vo.team.invest.ListInvestVo;
import com.zhuss.team.db.dao.gen.InvestMapper;
import com.zhuss.team.db.entity.Invest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InvestDao extends InvestMapper{

    void create(Invest bo);

    void delete(Invest bo);

    List<ListInvestVo> list(SearchInvestBo bo);

    Integer countList(SearchInvestBo bo);

    DetailInvestVo detail(@Param("investId") Long investId);

    List<GetInvestListVo> getInvestList(@Param("area") Integer area);
}